<?php if(count($data)>0): ?>
<div class="sb_box">
		<h3><?php echo $title;?><?php if($readmore):?><a class="box_readmore" href="<?php echo Yii::app()->controller->createUrlArticleCategory($this->catId);?>">Xem thêm</a><?php endif;?></h3>
		<div class="sbb-content">
		<?php 
			$i=0;
			foreach ($data as $key => $item):
			$i++;
			$url = Yii::app()->controller->createUrlArticle($item['id']);
		?>
			<div class="item-ac <?php if($i==count($data)) echo 'item-last';?>">
				<img src="<?php echo CommonHelper::getImageThumbNews($item['images']);?>" />
				<div class="title"><a href="<?php echo $url;?>"><?php echo $item['title']?></a></div>
				<div class="intro"><?php echo $item['introtext'];?></div>
			</div>
		<?php endforeach;?>
	</div>
</div>
<?php endif?>